CXX = clang++
CXXFLAGS = -g -Wall -O0 -std=c++0x
all: TestGraph

TestGraph: TestGraph.o MatrixGraph.o 
	$(CXX) $(CXXFLAGS) -o $@ TestGraph.o MatrixGraph.o

MatrixGraph.o: MatrixGraph.cpp Graph.h
	$(CXX) $(CXXFLAGS) -c MatrixGraph.cpp -o MatrixGraph.o

TestGraph.o: TestGraph.cpp MatrixGraph.o
	$(CXX) $(CXXFLAGS) -c TestGraph.cpp -o TestGraph.o


clean:
	rm -f *.o TestGraph

.PHONY: all clean
